.file-search-results {
  position: absolute;
  bottom: 24px; /* 状态栏的高度 */
  left: 0;
  right: 0;
  height: 200px;
  background-color: var(--editor-content-bg);
  border-top: 1px solid var(--editor-border);
  display: flex;
  flex-direction: column;
  z-index: 90;
}

.file-search-results .search-header {
  padding: 8px;
  border-bottom: 1px solid var(--editor-border);
  background-color: var(--toolbar-bg);
}

.file-search-results .search-header .ant-space {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.file-search-results .search-stats {
  color: var(--editor-text);
  font-size: 12px;
}

.file-search-results .search-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.file-search-results .result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}

.file-search-results .line-number {
  color: var(--editor-line-number);
  font-family: monospace;
  min-width: 50px;
}

.file-search-results .preview-text {
  color: var(--editor-text);
  font-family: monospace;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-search-results .preview-text mark {
  background-color: var(--search-highlight-bg);
  border: 1px solid var(--search-highlight-border);
  border-radius: 2px;
  margin: -1px;
  padding: 1px;
}

.file-search-results .ant-list-item {
  padding: 0;
  cursor: pointer;
}

.file-search-results .ant-list-item:hover {
  background-color: var(--editor-line-highlight);
}

.file-search-results .ant-list-item.active {
  background-color: var(--search-highlight-bg);
}

.file-search-results .search-status {
  padding: 8px;
  color: var(--status-info);
  font-size: 12px;
  text-align: center;
  background-color: var(--editor-content-bg);
  border-top: 1px solid var(--editor-border);
}

.file-search-results .search-error {
  padding: 8px;
  color: var(--status-error);
  font-size: 12px;
  text-align: center;
  background-color: var(--editor-content-bg);
  border-top: 1px solid var(--editor-border);
}

/* 滚动条样式 */
.file-search-results .search-results-list::-webkit-scrollbar {
  width: 8px;
}

.file-search-results .search-results-list::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

.file-search-results .search-results-list::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 4px;
}

.file-search-results .search-results-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

.file-search-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  border-left: 1px solid #e8e8e8;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.search-header {
  padding: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.search-progress {
  padding: 8px 12px;
  background: #f5f5f5;
}

.search-stats {
  padding: 8px 12px;
  color: #666;
  font-size: 12px;
  background: #f5f5f5;
}

.search-error {
  padding: 8px 12px;
  color: #ff4d4f;
  font-size: 12px;
  background: #fff2f0;
  border-top: 1px solid #ffccc7;
}

/* 搜索结果高亮样式 */
.search-result {
  background-color: #ffd54f;
  border-radius: 2px;
} 